﻿using System;
using System.Text;
using Portal.Core;
using System.Collections.ObjectModel;

namespace Portal.Exam.Render
{
    public class ExamRoomPermission : PermissionTemplate
    {
        public static string StaticId
        {
            get
            {
                return "ExamRoomPermission";
            }
        }
        public override string Id
        {
            get
            {
                return StaticId;
            }
        }

        public override string PermissionTypeName
        {
            get
            {
                return "Phân quyền quản lý phòng thi";
            }
        }

        public override PermissionFunctionCls[] PermissionFunctions
        {
            get
            {
                return new PermissionFunctionCls[]{
                    new PermissionFunctionCls(funcAccess,Id,"Cho phép truy cập"),
                    new PermissionFunctionCls(funcManage,Id,"Cho phép thêm sửa xóa"),
                    new PermissionFunctionCls(funcImport,Id,"Cho phép import"),
                    new PermissionFunctionCls(funcManExam,Id,"Cho phép tạo đề thi"),
                    new PermissionFunctionCls(funcManStudent,Id,"Cho phép thêm sửa xóa sinh viên"),
                };
            }
        }

        public static string funcAccess
        {
            get
            {
                return StaticId + "-Access";
            }
        }

        public static string funcManage
        {
            get
            {
                return StaticId + "-Manage";
            }
        }

        public static string funcImport
        {
            get
            {
                return StaticId + "-Import";
            }
        }

        public static string funcManExam
        {
            get
            {
                return StaticId + "-ManExam";
            }
        }


        public static string funcManStudent
        {
            get
            {
                return StaticId + "-ManStudent";
            }
        }
    }
}
